from rest_framework.pagination import PageNumberPagination

class CustomPagination(PageNumberPagination):
    """
    自定义分页器
    """
    page_size = 10
    page_query_param = 'page'
    max_page_size = 100
    page_size_query_param = 'size'
